import QtQuick 2.4
import QtQuick.Dialogs 1.2

Page3Form {
    comboBoxType.model: ["Dog","Cat","Fish","Bird"]
    buttonOrder.onClicked: {
        var order = "Your Pet " + textFieldName.text + ", " + labelAge.text + ",\r\n"
            + comboBoxType.currentText + " order is succeed.";
        messageDialog.text = order;
        console.log(order);
        messageDialog.open();

    }
    dialAge.onValueChanged: {
        progressBarAge.value = dialAge.value
        labelAge.text = "Age " + Math.round(dialAge.value)
    }

    MessageDialog{
        id:messageDialog
        title:"Confirm Order"
        text: ""
        onAccepted:{

            //Qt.quit();
        }
    }
}
